serach.c (simple_search): Remove warning by making *p const.
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000 (15:44 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Nov 2009 15:44:30 +0000 (15:44 +0000)
src/ChangeLog
src/search.c

index 8ccecd129844b69653a3a67007859c37e005b0a9..81d771ff5f67b12e98c2f27621ed4007fff89c5e 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-27  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * search.c (simple_search): Remove warning by making *p const.
+
 2009-11-26  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * xdisp.c (power_letter): Remove duplicate const.
index abbad764c3c41a9ad7b2b62d66e78c701f6a22dc..05db2bef98b73b0e74cccdf801724d79d9834313 100644 (file)
@@ -1612,7 +1612,7 @@ simple_search (n, pat, len, len_byte, trt, pos, pos_byte, lim, lim_byte)
            EMACS_INT this_pos = pos;
            EMACS_INT this_pos_byte = pos_byte;
            int this_len = len;
-           unsigned char *p = pat + len_byte;
+           const unsigned char *p = pat + len_byte;
 
            if (this_pos - len < lim || (pos_byte - len_byte) < lim_byte)
              goto stop;